package com.ep.thirdPlatformProject.oa.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;


@EqualsAndHashCode(callSuper = true)
@Data
@TableName("HrmDepartment")
public class OADepartmentEntity extends OABaseTableField {

    private Integer id;

    /**
     * 部门描述
     */
    @TableField("departmentmark")
    private String departmentMark;

    /**
     * 部门名称
     */
    @TableField("departmentname")
    private String departmentName;

    /**
     * 部门名称
     */
    @TableField("departmentcode")
    private String departmentCode;

    /**
     * t层级
     */
    @TableField("tlevel")
    private Integer tLevel;

    /**
     * 父id
     */
    @TableField("supdepid")
    private Integer parentId;


    /**
     * 父id
     */
    @TableField("subcompanyid1")
    private Integer companyId;


    /**
     * 是否取消
     */
    private Integer canceled;

    @Getter
    @Setter
    @TableField(exist = false)
    private String fullPathName;


    @TableField(exist = false)
    private List<OADepartmentEntity> children = new ArrayList<>();


}
